<%-- 
    Document   : index
    Created on : Jan 29, 2012, 6:06:02 PM
    Author     : Alex
--%>


<%@page import="LoginManager.LoginManager"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
   <style type="text/css">
body {
	background-color: #000;
	background-image: url(bg.jpg);
	background-repeat: repeat-x;
}
body,td,th {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 7pt;
	color: #FFF;
}
#login{
    font: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    color: white;
    position: absolute;
    top: 50px;
    left: 850px;
    text-align: left;
    font-style: bold;
}

h1 { font-family:Verdana, Geneva, sans-serif; font-size:24; text-align:center;}
h2 { font-family:Verdana, Geneva, sans-serif; font-size:10px; color:white;}
h3 { font-family:Verdana, Geneva, sans-serif; font-size:30; color:white; text-align:center;}


   </style>
   <script language = "Javascript" type="text/javascript">

function OnBlurInput(blur){

			if(blur.value == "")
			{
		    blur.value = "";
			}

}

function OnBlurInputPass(blur){

			if(blur.value == "")
			{
		    blur.value = "";
			}

			if(blur.value == "Password" || blur.value == "Retype Password" )
			{
			blur.type = "text";
			blur.value = blur.defaultValue;
			}


}

function OnClickInput(click){

			if(click.value == click.defaultValue )
			{
				click.value = "";
			}


}

function OnClickInputPass(click){

			if(click.value == click.defaultValue )
			{
				click.value = "";
			}
			if(click.type == "text")
			{
			click.type = "password";

			}

}
</script>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FooBar Bookstore</title>
<%--         <%
        
            response.setHeader("Pragma", "no-cache");
            response.setHeader("Cache-Control", "no-store");
            response.setHeader("Expires", "0");
            response.setDateHeader("Expires", -1);
            
        %> --%>
        
    </head>
    <body>
        
                              
        
    <h1>FooBar BookStore</h1>
        
    
    
    <div id="login">
            
    <h2> Admin Login: </h2>
    <form action="LogServlet">
    <input id="textbox" type="text" name="admin" value="Username" size="20"  onblur="OnBlurInput(this)" onclick="OnClickInput(this)"/>
    <input id="textbox2" type="text" name="adminpass" value="Password" size="20"  onblur="OnBlurInputPass(this)" onclick="OnClickInputPass(this)"/>
   
    
    <%--  <img src="http://localhost:8080/SECPROGMP/CaptchaServlet"> </br> --%>
    <%-- <input type="text" name="code"></input></br> --%>
  
    <input id="button"  size="20" type="submit" value = "Login"/>
    </form>
    
    <a href="register.jsp"><h2> Register!</h2> </a>
  
        
    </div>
    </body>

</html>
